package com.yj.suncity.user.bean;

import org.json.JSONObject;

public class LoginBean {
//	   
	private String success;// ": "1",
	private String msg;// ": "登录成功",
	private JSONObject member_userinfo;// ": {

	private String id="";// ": "26eb2d73-a769-4be9-ac44-48b0b45583c9",
	private String username;// ": "dhh",
	private String realname;// ": "",
	private String sex;// ": "0",
	private String id_card;// ": "",
	private String district_Id;// ": "",
	private String district_Name;// ": "山西省|太原市|小店区",
	private String role_id;// ": "0",
	private String role_name;// ": "",
	private String telphone;// ": "15835801463",
	private String password;// ": "",
	private String pay_pwd;// ": "",
	private String email;// ": "",
	private String secrecy_problem;// ": "",
	private String secrecy_answer;// ": "",
	private String birthday;// ": "0001/1/1 0:00:00",
	private String user_state;// ": "1",
	private String head_photo;// ": "",
	private String user_type;// ": "1",
	private String user_role;// ": "5",
	private String is_auth;// ": "2",
	private String user_level;// ": "0",
	private String tradeid;// ": "0",
	private String tradename;// ": "",
	private String positionid;// ": "1",
	private String loginnum;// ": "1",
	private String createtime;// ": "2015/4/7 12:36:18",
	private String silver_total;// ": "1",
	private String silver_use;// ": "1",
	private String silver_buy;// ": "0",
	private String silver_earn;// ": "0",
	private String gold_total;// ": "0",
	private String recomm_id;// ": "",
	private String recomm_name;// ": "",
	private String lower_num;// ": "0",
	private String lower_total;// ": "0",
	private String entid;// ": "",
	private String entLogo;
	private String entname;// ": "",
	private String address;// ": "",
	private String credit;// ": "0",
	private String remark;// ": ""

	public LoginBean(JSONObject json) {
		this.success = json.optString("success");
		this.msg = json.optString("msg");
		this.member_userinfo = json.optJSONObject("member_userinfo");
		if (member_userinfo != null) {
			this.id = member_userinfo.optString("id");
			this.username = member_userinfo.optString("username");
			this.realname = member_userinfo.optString("realname");
			this.sex = member_userinfo.optString("sex");
			this.id_card = member_userinfo.optString("id_card");
			this.district_Id = member_userinfo.optString("district_Id");
			this.district_Name = member_userinfo.optString("district_Name");
			this.role_id = member_userinfo.optString("role_id");
			this.role_name = member_userinfo.optString("role_name");
			this.telphone = member_userinfo.optString("telphone");
			this.password = member_userinfo.optString("password");
			this.pay_pwd = member_userinfo.optString("pay_pwd");
			this.email = member_userinfo.optString("email");
			this.secrecy_problem = member_userinfo.optString("secrecy_problem");
			this.secrecy_answer = member_userinfo.optString("secrecy_answer");
			this.birthday = member_userinfo.optString("birthday");
			this.user_state = member_userinfo.optString("user_state");
			this.head_photo = member_userinfo.optString("head_photo");
			this.user_type = member_userinfo.optString("user_type");
			this.user_role = member_userinfo.optString("user_role");
			this.is_auth = member_userinfo.optString("is_auth");
			this.user_level = member_userinfo.optString("user_level");
			this.tradeid = member_userinfo.optString("tradeid");
			this.tradename = member_userinfo.optString("tradename");
			this.positionid = member_userinfo.optString("positionid");
			this.loginnum = member_userinfo.optString("loginnum");
			this.createtime = member_userinfo.optString("createtime");
			this.silver_total = member_userinfo.optString("silver_total");
			this.silver_use = member_userinfo.optString("silver_use");
			this.silver_buy = member_userinfo.optString("silver_buy");
			this.silver_earn = member_userinfo.optString("silver_earn");
			this.gold_total = member_userinfo.optString("gold_total");
			this.recomm_id = member_userinfo.optString("recomm_id");
			this.recomm_name = member_userinfo.optString("recomm_name");
			this.lower_num = member_userinfo.optString("lower_num");
			this.lower_total = member_userinfo.optString("lower_total");
			this.entid = member_userinfo.optString("entid");
			this.entLogo=member_userinfo.optString("entLogo");//商家图片
			this.entname = member_userinfo.optString("entname");
			this.address = member_userinfo.optString("address");
			this.credit = member_userinfo.optString("credit");
			this.remark = member_userinfo.optString("remark");
		}
	}

	public String getEntLogo() {
		return entLogo;
	}

	public String getSuccess() {
		return success;
	}

	public JSONObject getMember_userinfo() {
		return member_userinfo;
	}

	public String getId() {
		return id;
	}

	public String getUsername() {
		return username;
	}

	public String getRealname() {
		return realname;
	}

	public String getSex() {
		return sex;
	}

	public String getId_card() {
		return id_card;
	}

	public String getDistrict_Id() {
		return district_Id;
	}

	public String getDistrict_Name() {
		return district_Name;
	}

	public String getRole_id() {
		return role_id;
	}

	public String getRole_name() {
		return role_name;
	}

	public String getTelphone() {
		return telphone;
	}

	public String getPassword() {
		return password;
	}

	public String getPay_pwd() {
		return pay_pwd;
	}

	public String getEmail() {
		return email;
	}

	public String getSecrecy_problem() {
		return secrecy_problem;
	}

	public String getSecrecy_answer() {
		return secrecy_answer;
	}

	public String getBirthday() {
		return birthday;
	}

	public String getUser_state() {
		return user_state;
	}

	public String getHead_photo() {
		return head_photo;
	}

	public String getUser_type() {
		return user_type;
	}

	public String getUser_role() {
		return user_role;
	}

	public String getIs_auth() {
		return is_auth;
	}

	public String getUser_level() {
		return user_level;
	}

	public String getTradeid() {
		return tradeid;
	}

	public String getTradename() {
		return tradename;
	}

	public String getPositionid() {
		return positionid;
	}

	public String getLoginnum() {
		return loginnum;
	}

	public String getCreatetime() {
		return createtime;
	}

	public String getSilver_total() {
		return silver_total;
	}

	public String getSilver_use() {
		return silver_use;
	}

	public String getSilver_buy() {
		return silver_buy;
	}

	public String getSilver_earn() {
		return silver_earn;
	}

	public String getGold_total() {
		return gold_total;
	}

	public String getRecomm_id() {
		return recomm_id;
	}

	public String getRecomm_name() {
		return recomm_name;
	}

	public String getLower_num() {
		return lower_num;
	}

	public String getLower_total() {
		return lower_total;
	}

	public String getEntid() {
		return entid;
	}

	public String getEntname() {
		return entname;
	}

	public String getAddress() {
		return address;
	}

	public String getCredit() {
		return credit;
	}

	public String getRemark() {
		return remark;
	}

	public String getMsg() {
		return msg;
	}

}
